//
//  LYYMineTableViewCell.m
//  Icar
//
//  Created by dllo on 15/10/22.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "LYYMineTableViewCell.h"
@implementation LYYMineTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc]initWithFrame:CGRectMake(WIDTH(15), HEIGHT(10), WIDTH(20), HEIGHT(20))];
        [self.contentView addSubview:self.imgView];
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH(50), HEIGHT(5), WIDTH(80), HEIGHT(30))];
        [self.contentView addSubview:self.label];
        [self.label setTextColor:[UIColor blackColor]];
        
        self.lineView = [[UIView alloc]initWithFrame:CGRectMake(WIDTH(50), HEIGHT(45), WIDTH(349), HEIGHT(1))];
        [self.lineView setBackgroundColor:LINECOLOR];
        [self.contentView addSubview:self.lineView];
        
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if ([LYYNightModeHandle shareNightModeHandle].temp == NO) {
        [self.contentView setBackgroundColor:[UIColor whiteColor]];
        self.label.textColor = [UIColor blackColor];
    }
    
    if ([LYYNightModeHandle shareNightModeHandle].temp == YES){
        [self.contentView setBackgroundColor:[UIColor blackColor]];
        self.label.textColor = [UIColor whiteColor];
    }
    // Configure the view for the selected state
}

@end
